#include "GLRender.h"

GLRender::GLRender(ESContext *context) {
	m_context = context;
}

bool GLRender::onCreate() {
	glClearColor(1.0f, 1.0f, 1.0f, 1.0f); //White 白色
}

void GLRender::onDraw() {
	glViewport(0, 0, m_context->width, m_context->height);
	glClear(GL_COLOR_BUFFER_BIT);
}

void GLRender::onDestory() { 
	
}
